
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import "@/styles/common.scss"
import App from './App.vue'
import router from './router'
import { LazyImgPlugin } from '@/directives/lazyimg'
import {ComponentsPlugin} from '@/components/index'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia)

app.use()
app.use(router)
//使用自定义插件
app.use(LazyImgPlugin)
app.use(ComponentsPlugin)
app.mount('#app')

